<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        "strict model"
        var o = {
            name:"laowang",
            age:19,
            go:"啥也不是"
        }
        var obj = Object.create(null,{
            name:{
                value:"laowang",//属性值
                writable:true,//属性是否可以修改
                enumerable:true,//属性是否可以遍历
                configurable:false//属性是否可以删除
            },
            age:{
                value:19
            },
            go:{
                value:"啥也不是"
            }
        });
        console.log("改之前",obj);
        obj.name = "xiaowang";
        delete obj.age;
        for(key in obj){
            console.log(key);
        }
        console.log("修改之后",obj);
    </script>
</body>
</html>